package com.guigu.www.service.Impl;

import com.guigu.www.dao.GyMapper;
import com.guigu.www.pojo.Gy;
import com.guigu.www.service.GyServce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GyServceImpl implements GyServce {
    @Autowired
    private GyMapper gyMapper;
    @Override
    public Gy queryAll() {
        return gyMapper.queryAll();
    }

    @Override
    public int xg(Gy gy) {
        return gyMapper.updateByPrimaryKey(gy);
    }
}
